<?php

/************************
* TEMPLATE PREPATIONS
************************/
$tpl_content = new TemplatePower(PATH_HTML . 'content_body' . EXT_HTML);
$tpl_content->prepare();

/************************
* LOAD ADDITIONAL IMAGES
************************/
$add_images = ($page_add_images == '1') ? true : false;

if ($add_images)
{
	$get_images	=	"
					SELECT		*
					FROM		" . TABLE_MEDIA . "
					WHERE		med_rel_id		= '" . $page_id . "'
					AND			med_rel_type	= '" . PAGE_IMAGES . "'
					";
	$sql_images =	$db->sql_query($get_images);
	while ($row_images = $db->sql_fetch_assoc($sql_images))
	{
		$image_title = $row_images['media_title'];
	}
}

$tpl_content_vars = array(
	'PAGE_TITLE'	=> $page_title,
	'PAGE_CONTENT'	=> $page_content,
	'URL_PATH'		=> $url_offset
);

$tpl_content->assign($tpl_content_vars);
//$tpl_content->printToScreen();

?>